import request from '@/utils/request'

// 查询进程日志列表
export function listProgramLog(query) {
  return request({
    url: '/devops/programLog/list',
    method: 'get',
    params: query
  })
}

// 查询进程日志详细
export function getProgramLog(id) {
  return request({
    url: '/devops/programLog/' + id,
    method: 'get'
  })
}

// 新增进程日志
export function addProgramLog(data) {
  return request({
    url: '/devops/programLog',
    method: 'post',
    data: data
  })
}

// 修改进程日志
export function updateProgramLog(data) {
  return request({
    url: '/devops/programLog',
    method: 'put',
    data: data
  })
}

// 删除进程日志
export function delProgramLog(id) {
  return request({
    url: '/devops/programLog/' + id,
    method: 'delete'
  })
}

// 导出进程日志
export function exportProgramLog(query) {
  return request({
    url: '/devops/programLog/export',
    method: 'get',
    params: query
  })
}